<fieldset>
    <legend>条件搜索</legend>
    <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户昵称</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="nickname" placeholder="请输入用户昵称" value="{:input('nickname','')}">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户账号</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="username" placeholder="请输入用户账号" value="{:input('username','')}">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户手机号</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="phone" placeholder="请输入用户手机号" value="{:input('phone','')}">
            </label>
        </div>

        <!--{notempty name='staff_type'}-->
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">员工属性</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="type">
                    <option value="">-- 全部 --</option>
                    {foreach $staff_type as $upgrade}{if input('type') eq $upgrade.id}
                    <option selected value="{$upgrade.id|default=0}">{$upgrade.name|default=''}</option>
                    {else}
                    <option value="{$upgrade.id|default=0}">{$upgrade.name|default=''}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>
        <!--{/notempty}-->

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>